package nest.bb.spike

class EmergencyContact {

	String firstName
	String lastName
	Boolean mainContact
	List<Phone> phones;
	List<Address> addresses;
	
	static hasMany = [
		phones: Phone,
		addresses: Address
		]
	

    static constraints = {
		firstName	(nullable: false, blank: false)
		lastName	(nullable: false, blank: false)
		mainContact	(nullable: false)
    }
}
